const xy = require('../utils/xy')
module.exports = {
    async count(req, resp) {
        // 查询所有订单 - 处理订单数据 - 响应给前端
        xy(resp, 200, '获取统计数据成功！', {
            data: [
                {
                    year: '2018',
                    number: 1
                },
                {
                    year: '2019',
                    number: 2
                },
                {
                    year: '2020',
                    number: 2
                },
                {
                    year: '2021',
                    number: 7
                },
                {
                    year: '2022',
                    number: 18
                },
                {
                    year: '2023',
                    number: 16
                },
                {
                    year: '2024',
                    number: 1
                }
            ]
        })
    }
}